package com.isoft.systemprovidor.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("TMIM_SYSTEM.TB_MYMESSAGE")
public class MyMessage {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String sysuserid;
    private String mesname;
    private String mescontent;
    private String mesattach;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date startdate;

    private int readstate;
    public static final int STATE_UNREAD=0;
    public static final int STATE_READ=1;
}
